﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LCL.Config;

namespace LCL.Tools.WinFrm.UserControls
{
    public partial class UcNameConfig : UserControl
    {
        AppSetingInfo appSetingInfo = null;
        public UcNameConfig()
        {
            InitializeComponent();
            appSetingInfo = AppSeting.GetConfig();
            this.txt_NameSpace.Text = appSetingInfo.NameSpace;
            this.txt_TableFormat.Text = appSetingInfo.TableFormat;
        }

        public void SaveConfig()
        {
            appSetingInfo.NameSpace =this.txt_NameSpace.Text;
            appSetingInfo.TableFormat = this.txt_TableFormat.Text;
            AppSeting.SaveConfig(appSetingInfo);
        }
    }
}
